home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / CPrefFile / CPrefFile.h < prev    next >
Encoding:
Text File  |  1997-01-22  |  1.3 KB  |  30 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. // CPrefFile.h            ©1996 Sunbay Development Group. All rights reserved.
  3. // ===========================================================================
  4. // 
  5.  
  6. #pragma once
  7.  
  8. #include <LFile.h>
  9.  
  10. class CPrefFile : public LFile {
  11.     public:
  12.                 CPrefFile(void);
  13.                 CPrefFile(ConstStr255Param inFileName, Boolean inCreateFolder = false);
  14.  
  15.         OSErr    SetName(ConstStr255Param inFileName, Boolean inCreateFolder = false);
  16.         OSErr    CreateFile(OSType inCreator, OSType inFileType, ScriptCode inScriptCode = smSystemScript);
  17.  
  18.         OSErr    CreateResFork(OSType inCreator, OSType inFileType, ScriptCode inScriptCode = smSystemScript);
  19.         OSErr    OpenResFork(Int16 inPrivileges = fsRdWrPerm);
  20.         OSErr    CloseResFork(void);
  21.  
  22.         OSErr    CreateDatFork(OSType inCreator, OSType inFileType, ScriptCode inScriptCode = smSystemScript);
  23.         OSErr    OpenDatFork(Int16 inPrivileges = fsRdWrPerm);
  24.         OSErr    CloseDatFork(void);
  25.  
  26.         OSErr    NewResource(void *resdata, long ressize, ResType restype, short resid, ConstStr255Param resname = "\p");
  27.         OSErr    PutResource(void *resdata, long ressize, ResType restype, short resid, ConstStr255Param resname = "\p");
  28.         OSErr    GetResource(void *resdata, long ressize, ResType restype, short resid, ConstStr255Param resname = "\p");
  29. };
  30.